package ioc06.controller;

import ioc06.service.UserService;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * Author：汤小洋
 * Date：2023-08-11 9:48
 * Description：<描述>
 */
@Controller
@RequiredArgsConstructor // 根据final修饰的属性生成构造方法
public class UserController {

    private final UserService userService;

    // @Autowired // 如果类中只有一个构造方法，则可以省略@Autowired
    // public UserController(UserService userService){
    //     this.userService = userService;
    // }

}
